<h3>Edit {{infoToModify.infoName.name}} of {{fullName}}</h3>
<br/>
<form id="editInfo" name="editInfo" class="form-horizontal" role="form" ng-controller="InfosController as infosCtrl"
      ng-submit="editInfo.$valid && infosCtrl.updateInfo(infoToModify.id, currentUser, infoToModify.infoName.id, infoToModify.value) || infosCtrl.closeAll()" 
      novalidate>
		<div  class="col-sm-6">
	        <div class="form-group" ng-class="{'has-error': !editInfo.value.$valid && editInfo.value.$dirty}">
		        <input class="form-control" name="value" type="text" ng-pattern="pat" ng-model="infoToModify.value"  maxlength="63" required></br>
		    </div>
	    </div>

        <div class="form-group">
        	<div class="col-sm-10">
        		<input  ng-disabled="!editInfo.$valid" id="btn-login" type="submit" name="add" class="btn btn-success" value="Edit Info">
			</div>
		</div>

</form>
